<?php
include 'checkLogin.php';
@$branch_id = $_REQUEST['branch_id'];
@$name = $_REQUEST['name'];
@$phone = $_REQUEST['phone'];

if(empty($branch_id)||empty($phone)){
	$med = "都不能为空";
	include 'ediBranch.php';
	die;
}
include 'db/li.php';

@$flog = dbUpdate('update branch set name=:name,phone=:phone where id=:id',array('name'=>$name,'phone'=>$phone,'id'=>$branch_id));
if(!$flog){
	$med = "修改失败";
	include 'ediBranch.php';
	die;
}
header('Refresh:0;url=branchList.php');
